import request from "/@/utils/request"


/**
 * 获取产线
 * @param query
 */
export function mesProcessPage(query?: Object) {
  return request({
    url: '/eletile-qms/mesProcess/page',
    method: 'get',
    params: query
  })
}

/**
 * 获取工序
 * @param query
 */
export function mesProcessLine(query?: Object) {
  return request({
    url: 'wms/process/GetProductionlineByProcessIdNoPage',
    method: 'post',
    data: query
  })
}
/**
 * 获取物料
 * @param data
 */
export function QueryMaterial(data?: any) {
  return request({
    url: '/wms/commonUtil/QueryMaterial',
    method: 'post',
    data: data
  })
}

/**
 * 获取检测类型
 * @param data
 */
export function fetchCheckList(data?: any) {
  return request({
    url: '/wms/getValueSet/GetDicItemByCode',
    method: 'post',
    data: data
  })
}
export function qmsRelationHPage(query?: Object) {
  return request({
    url: '/eletile-qms/qmsRelationH/page',
    method: 'get',
    params: query
  })
}

export function addRelationH(obj?: Object) {
  return request({
    url: '/eletile-qms/qmsRelationH',
    method: 'post',
    data: obj
  })
}

export function getObj(id?: string) {
  return request({
    url: '/eletile-qms/qmsRelationH/' + id,
    method: 'get'
  })
}

export function delRelationH(ids?: Object) {
  return request({
    url: '/eletile-qms/qmsRelationH',
    method: 'delete',
    data: ids
  })
}

export function updateRelationH(obj?: Object) {
  return request({
    url: '/eletile-qms/qmsRelationH',
    method: 'put',
    data: obj
  })
}

export function getTI(obj?: Object) {
  return request({
    url: '/eletile-qms/qmsTiCheckH/getTI',
    method: 'get',
    data: obj
  })
}

export function qmsTiCheckHSave(obj?: Object) {
  return request({
    url: '/eletile-qms/qmsTiCheckH/save',
    method: 'post',
    data: obj
  })
}


export function qmsTiCheckHUpdate(obj?: Object) {
  return request({
    url: '/eletile-qms/qmsTiCheckH/update',
    method: 'post',
    data: obj
  })
}




